home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / NEWS < prev    next >
Text File  |  1993-05-29  |  77KB  |  2,025 lines

  1.    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.
  18.  
  19. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  20.  
  21. This file, NEWS, describes the changes in the most recent releases of
  22. Ghostscript.  Changes in older releases are described in history.doc.
  23.  
  24. For an overview of Ghostscript and a list of the documentation files, see
  25. README.
  26.  
  27. Version 2.6.1 (5/28/93)
  28. =============
  29.  
  30. This is primarily a bug-fix release for 2.6, with a couple of minor
  31. additions.
  32.  
  33. Documentation
  34. -------------
  35.  
  36. Adds proper `man' pages ansi2knr.1 and gs.1.
  37.  
  38. Procedures
  39. ----------
  40.  
  41. Fixes bugs:
  42.     - The Unix makefile produced an incorrect linker command if
  43. EXTRALIBS was not empty.
  44.     - The Unix install commands didn't copy devices.doc,
  45. ps2epsi.doc, and xfonts.doc to the documentation directory.
  46.     - echogs.c didn't include <sys/types.h>, which is needed for
  47. time_t on some systems.
  48.     - malloc_.h used <malloc.h> rather than <stdlib.h> on
  49. NeXTStep systems.
  50.  
  51. Changes the configuration procedure to use a C program rather than
  52. complex shell scripts.
  53.  
  54. Utilities
  55. ---------
  56.  
  57. Fixes bugs:
  58.     - The boilerplate produced by ps2image used the 'max'
  59. operator, which is not a standard PostScript operator.
  60.     - The winmaps.ps utility had 'floring' instead of 'florin' in
  61. the OEMEncoding table.
  62.     - quit.ps was omitted from the PC distribution.
  63.  
  64. Changes the name of the dicttomark procedure to .dicttomark.
  65.  
  66. Renames gs_2asc.ps as ps2ascii.ps, so it matches the names of the
  67. script files.
  68.  
  69. Drivers
  70. -------
  71.  
  72. Fixes bugs:
  73.     - The pbmraw driver was writing out RGG instead of RGB values.
  74.     - The X11 driver used NULL in a place where it should have
  75. used None.
  76.     - For multi-file output, the GIF driver didn't write a header
  77. at the beginning of each file.
  78.     - The Epson driver didn't honor the -A4 compilation switch,
  79. didn't put (0,0) at the physical corner of the page, and was too
  80. liberal about using tabs instead of spaces.
  81.  
  82. Replaces the color handling algorithms in the X Windows driver with
  83. new, much better ones.
  84.  
  85. Makes the PC display drivers recognize the -A4 compilation switch,
  86. like the printer drivers.
  87.  
  88. Adds new user-contributed drivers:
  89.     - A driver for Epson printers that use the ESC/P 2 control
  90. language, such as the Stylus 800.
  91.     - A driver for the Apple Dot Matrix Printer and Imagewriter.
  92.  
  93. Adds a new get_xfont_device driver procedure.  This is a
  94. backward-compatible change, since there is a sensible default.
  95.  
  96. Platforms
  97. ---------
  98.  
  99. Fixes bugs:
  100.     - On VMS, gconfig.h didn't have #include "gsconfig.h" as its
  101. first line.
  102.     - gconfig.c compiled incorrectly on the RS/6000 because the
  103. compiler evaluated a constant of the form (x<<y)+z incorrectly.
  104.     - Quite a few files that used the mem... functions didn't
  105. include memory_.h, which caused trouble on some bsd4.2 systems.
  106.     - The definition of zfont_char_xglyph confused one of the AIX
  107. compilers.
  108.     - On VMS, DEC C allows extra arguments for fopen, but gcc doesn't.
  109.     - On the MS Windows platform, 2.6 used gdevwddb rather than
  110. gdevwdib; the latter is almost always faster.
  111.     - The PC .zip files didn't include the Windows .ICO and .RES
  112. files in either GSEXE.ZIP or GSFILES.ZIP.
  113.  
  114. On PC platforms, adds an option (FPU_TYPE=-1) to optimize for
  115. machines lacking a floating point processor.
  116.  
  117. Fonts
  118. -----
  119.  
  120. Adds 4 new fonts contributed by URW.  These have a URW copyright and
  121. are governed by the GNU License.
  122.  
  123. Documents the fact that font names in Fontmap can be strings, not
  124. only names.
  125.  
  126. Adds DingbatsEncoding as a predefined encoding (in addition to
  127. Standard, ISOLatin1, and Symbol).
  128.  
  129. Interpreter
  130. -----------
  131.  
  132. Fixes bugs:
  133.     - memchr (used in zfile.c) isn't available on all platforms.
  134.     - languagelevel was defined as an operator rather than an
  135. integer.
  136.     - iccfont.c referred to name_StandardEncoding instead of
  137. #include'ing font.h and referring just to StandardEncoding.
  138.     - The CCITTFaxDecode filter didn't work on 32- (or 64-) bit
  139. machines, because of a bug in more_bits().
  140.     - The structures recording an allocation within the scope of
  141. a save could get allocated unnecessarily, because they weren't
  142. properly marked as free when an array was freed.
  143.  
  144. Renames the following Ghostscript-specific operators by adding a '.'
  145. at the front: makeoperator, setdebug, setmaxlength, stringmatch,
  146. type1decrypt, type1encrypt.
  147.  
  148. Adds a real implementation of glyphshow.
  149.  
  150. Library
  151. -------
  152.  
  153. Fixes bugs:
  154.     - Discarding fractional character coordinates in the Type 1
  155. rasterizer led to some rendering anomalies (e.g., characters 1 pixel
  156. too high).
  157.     - If a font had a non-standard encoding (i.e., not
  158. StandardEncoding, ISOLatin1Encoding, or SymbolEncoding), Ghostscript
  159. would never invoke the platform font code.
  160.     - The RGB to HSB color conversion algorithms produced
  161. nonsensical values.
  162.     - struct cached_char_s was defined redundantly in gxcdir.h,
  163. causing compilation problems on some systems.
  164.     - 32-bit color devices didn't work properly on little-endian
  165. machines (arrange_bytes in gdevmem2 was wrong).
  166.     - The scaled font cache could confuse two fonts with the same
  167. UniqueID and different Encodings.
  168.     - Under many common circumstances (first use of a character
  169. was with stringwidth, the font was renamed, the font encoding was
  170. changed), xfonts would not be used.
  171.  
  172. Adds gs_glyphshow.
  173.  
  174. Version 2.6 (5/9/93)
  175. ===========
  176.  
  177. The main new feature in this release is the ability to use platform
  178. fonts.  It also adds many more Level 2 PostScript facilities.
  179.  
  180. Documentation
  181. -------------
  182.  
  183. Corrects some errors in the documentation of the makeimagedevice operator.
  184.  
  185. Adds operand and result types to the comments at the beginning of all the
  186. operators.
  187.  
  188. Adds new sections on installation in use.doc.
  189.  
  190. Reinstates history.doc as a repository for old and no longer interesting
  191. history information.
  192.  
  193. Adds a new file, devices.doc, with documentation for specific devices.
  194.  
  195. Points out that font2c must be run with a Fontmap that includes the fonts
  196. being converted, and that its arguments must be quoted with "" on VMS
  197. systems.
  198.  
  199. Notes that the font name in the Fontmap must be the same as the FontName
  200. in the font.
  201.  
  202. Adds a list of the Level 2 facilities not provided by Ghostscript.
  203.  
  204. Identifies bug-ghostscript@prep.ai.mit.edu as an alias for the
  205. gnu.ghostscript.bug newsgroup.
  206.  
  207. Points out explicitly that -sOutputFile=- sends output to stdout, and
  208. requires using the -q switch.
  209.  
  210. Documents the use of tar_cat to construct the Unix makefiles.
  211.  
  212. Adds a new file, xfonts.doc, that describes the external font interface.
  213.  
  214. Documents the fact that drivers must use gs_malloc and gs_free rather than
  215. malloc and free.
  216.  
  217. Documents the *.sh (shell script) files.
  218.  
  219. Adds brief documentation on some additional development tool .ps files.
  220.  
  221. Documents the TEMP and GS_OPTIONS environment variable.
  222.  
  223. Points out the need to run Windows in 386 Enhanced mode on machines
  224. that have less than 6 Mb of RAM.
  225.  
  226. Consolidates documentation on compiler switches in make.doc (some of
  227. it had been in the unix*.mak files).
  228.  
  229. Procedures
  230. ----------
  231.  
  232. Fixes bugs:
  233.     - \'s in arguments following -- were doubled.
  234.  
  235. Includes the full set of filters automatically if the level2 feature
  236. is selected.
  237.  
  238. Extends DEVICE_DEVS... up to DEVS9.  Adds DEVICE_DEVS1 as well.
  239.  
  240. Renames turboc.mak and tbcplus.mak as tc.mak and bc.mak.
  241.  
  242. Makes @-files use the library path (GS_LIB, -I).
  243.  
  244. Changed the Unix install script to use install <file> <destfile>
  245. rather than install <file> <directory>.
  246.  
  247. Adds a GS_OPTIONS environment variable that acts like an implicit @-file
  248. at the beginning of the command line (i.e., may contain switches and
  249. initialization files).
  250.  
  251. Renames sym__enc.ps as gs_sym_e.ps.
  252.  
  253. Adds a user-contributed shell script for using Ghostscript with an
  254. H-P printer spooler.
  255.  
  256. Adds level1.ps to the set of installed utility files.
  257.  
  258. Extends the TEMP environment variable (the directory for scratch
  259. files) to work on Unix as well as MS-DOS.
  260.  
  261. Changes the MS Windows makefile to generate gswin.exe rather than
  262. gs.exe, and the Watcom makefile to generate gs386.exe.
  263.  
  264. Moves the "product" string from gs_init.ps to iinit.c.
  265.  
  266. Adds a GS macro to the makefiles, to allow choosing the name of the
  267. executable.
  268.  
  269. Utilities
  270. ---------
  271.  
  272. Fixes bugs:
  273. *    - font2c did the wrong thing (still) for fonts that didn't
  274. use StandardEncoding, ISOLatin1Encoding, or SymbolEncoding.
  275. *    - impath.ps had a fatal bug (wrong operand order for
  276. charstack_write) that caused bdftops to fail.
  277.     - gslp didn't wrap or truncate lines.
  278.     - gslp didn't handle tabs in a second or subsequent column
  279. properly.
  280.     - The definition of ashow in gs_2asc.ps incorrectly undid the
  281. increment following the last character.
  282.     - The definition of awidthshow in gs_2asc.ps failed to pop
  283. two entries from the stack, and also tested the character against the
  284. wrong value.
  285.  
  286. Adds a shell script (sysvlp.sh) that interfaces Ghostscript with the
  287. System V 3.2 lp interface.
  288.  
  289. Adds ps2ascii and ps2epsi script/batch files.
  290.  
  291. Adds a new utility, mergeini.ps, for concatenating all the
  292. Ghostscript initialization files into a single file, optionally
  293. removing comments and blank lines.
  294.  
  295. Adds new switches to gslp:
  296.     -q: suppress all printed output.
  297.     --detect: check whether the file begins with %!, and if so,
  298.         interpret it directly as a PostScript file.
  299.     --first-page <page#>: replaces the former -P switch.
  300.     --last-page <page#>: replaces the former -Q switch.
  301.     --(heading|footing)-(left|center|right) <string>: define
  302.         headers/footers.  # inserts the page number.
  303.     --margin-(top|bottom|left|right) <inches>: define margins.
  304.     --spacing <n>: for double, triple, etc. spacing.
  305. Also makes gslp ignore all the enscript flags it doesn't implement.
  306.  
  307. Adds an option to wrfont.ps to do encryption at read-in time.  (This
  308. allows much better compression of the standard Ghostscript fonts.)
  309. Changes bdftops to use this option.
  310.  
  311. Changes gslp to accept wild cards in file names.
  312.  
  313. Replaces landscap.ps with a new one contributed by a user.
  314.  
  315. Changes the compression scheme used in ps2image to a much more
  316. effective one.  Writing images is much slower than with the previous
  317. scheme, but reading is not.
  318.  
  319. Platforms
  320. ---------
  321.  
  322. Fixes bugs:
  323.     - SCFDTAB and SCFTAB were omitted from the VMS module lists.
  324.     - Function prototypes were not being used with the Watcom
  325. compiler.
  326.     - On MS-DOS platforms, if the value of the TEMP variable had
  327. a trailing : or \, Ghostscript appended a \ anyway.
  328.     - Under Windows, changing the size or resolution of the image
  329. closed and reopened the window.
  330.     - Ghostscript would not build correctly with the Watcom compiler
  331. if DOS4G=quiet was not set, because the DOS4GW copyright message was sent
  332. to stdout.
  333. *    - Finally gets Ghostscript to run properly on the RS/6000, by
  334. adding a compiler bug workaround to arc_add and arc_either.
  335. *    - Finally gets Ghostscript to compile properly on Sun SPARC
  336. systems, by adding a compiler bug workaround in scan_number.
  337.  
  338. Changes the default MS-DOS configuration from 8086/8088 to 80286.
  339.  
  340. Adds all the SuperVGA drivers to the BC++ and Watcom executables
  341. (except for the VESA driver in the Watcom executable).
  342.  
  343. Adds a makefile (msc.mak) for the Microsoft C/C++ 7.0 platform.  This
  344. is currently a MS-DOS, not a MS Windows, platform.
  345.  
  346. Changes gp_enumerate_files_init so it takes a gs_memory_procs *, not
  347. separate proc_alloc_t and proc_free_t arguments; also, it must
  348. enumerate precisely the requested set of files, not a superset.  THIS
  349. IS A NON-BACKWARD-COMPATIBLE-CHANGE.  It affects all gp_*.c files.
  350.  
  351. Adds the P*M drivers and bit.dev to the standard configuration on
  352. Unix platforms.
  353.  
  354. Changes the Watcom makefile so it uses the WATCOM environment variable (by
  355. default) as the base directory for the Watcom executables.
  356.  
  357. Adds the MS Windows COMMDLG.DLL and SHELL.DLL files to the set of
  358. files incorporated in GSEXE.ZIP, since the new MS Windows code uses
  359. them, and they aren't provided with Windows 3.0.
  360.  
  361. Makes major revisions to the MS Windows platform and driver code, to
  362. support the gsview front end, and also to remove the dependence on the
  363. Borland EasyWin library.  NOTE: Compiling the MS Windows code now requires
  364. Borland C++ 3.1 (not 3.0).
  365.  
  366. Changes time_.h so that Ghostscript will compile and run on A/UX.
  367.  
  368. Changes the MS-DOS implementation of file enumeration so it always
  369. treats \s in the file name as literal characters, not escapes, unless
  370. there are two \\s in a row.  This does the most sensible thing given
  371. the DOS file naming conventions.
  372.  
  373. Adds a %pipe% file device under Unix.
  374.  
  375. Adds a makefile for Watcom C under MS Windows.  This is very preliminary;
  376. in particular, NO display output is supported.
  377.  
  378. Fonts
  379. -----
  380.  
  381. Fixes bugs:
  382.     - fonts.mak referred to ncri and puti rather than ncrri and
  383. putri.
  384.     - cyr and cyri had the wrong protection.
  385.     - The Hershey fonts left the font on the stack when they were
  386. loaded.
  387. *    - The FontName of an aliased font was the original FontName
  388. from the file, not the alias.
  389. *    - Fontmap.BTS had incorrect entries for AvantGarde-Demi and
  390. AvantGarde-DemiOblique.
  391.     - Ghostscript pushed userdict, rather than an empty writable
  392. dictionary, onto the stack when loading a font, leading to name clashes.
  393.  
  394. Adds a new cfonts.mak with a full set of rules for compiling all the
  395. standard Ghostscript fonts (except the Hershey fonts) into C.
  396.  
  397. Adds UniqueIDs to the Hershey fonts, and removes the UniqueIDs from
  398. the Hershey entries in the Fontmap.
  399.  
  400. Adds a new Fontmap for VAX/VMS with DECWindows/Motif.
  401.  
  402. Changes MakeHersheyFont so it takes the encoding as an additional
  403. parameter, and changes the Hershey-Symbol font to use SymbolEncoding.
  404.  
  405. Drivers
  406. -------
  407.  
  408. Fixes bugs:
  409.     - The !@*&^%#@$ PCL drivers *still* didn't do the right thing
  410. about vertical spacing: the <ESC>*p+<n>Y command works on all PCL 3,
  411. 4, and 5 printers *except* the LaserJet IIp.
  412.     - The cdj driver used recursive macros (height, t_margin,
  413. b_margin) that not all compilers handled correctly.
  414.     - The djtc driver used some assignments including =*, which
  415. some compilers dislike.
  416.     - The S3 driver wouldn't compile correctly with the Watcom
  417. compiler.
  418.     - The makefile entry for the S3 driver was wrong.
  419.     - The SuperVGA drivers returned an error, rather than using
  420. the highest available resolution, if a too-high resolution was
  421. requested.
  422.     - The GIF driver produced an incorrect header for images
  423. wider or taller than 32K pixels.
  424.     - The GIF driver wasn't able to handle multi-page documents
  425. correctly.
  426.     - The margins on the DeskJet were still not correct.
  427.     - Some ANSI C compilers rejected a complex expression in
  428. gdevpccm.c.
  429.     - Printer drivers didn't recover cleanly from problems in
  430. opening the scratch files.
  431.     - The BJ-10e driver used the same name `out' for a label and
  432. a variable.
  433.     - The SCO ODT compiler couldn't handle sizeof(ppdev->fname).
  434.     - The Epson driver used the wrong value for ESC in the
  435. initialization string.
  436.  
  437. Adds new drivers:
  438.     - Drivers to produce MS Windows .BMP format output.
  439.     - A new ATI Wonder display driver (800x600, 16 colors) and a
  440. 1024x768 mode for the existing driver.
  441.  
  442. Adds new user-contributed drivers:
  443.     - A driver for the Tektronix 4693d color printer.  This carries a
  444. university copyright.
  445.     - A driver for the SPARCprinter.
  446.     - A driver for the Canon BJ200 printer.
  447.     - A driver for the IBM ProPrinter.
  448.     - A driver for the DEC LJ250 printer, which has a
  449. PaintJet-compatible mode.
  450.     - A replacement driver for the Sony NWP533.
  451.     - A driver that writes TIFF/F (Group 3 fax) files.  This carries
  452. an external copyright.
  453.     - A driver for the C.Itoh M8510 printer.
  454.     - A driver for the Okidata MicroLine 182 9-pin dot-matrix printer.
  455.     - A Hercules Graphics driver.
  456.     - A driver for printers under MS Windows.
  457.     - A driver for direct frame buffer addressing under SCO Unix
  458. and Xenix and AT&T SVR4.
  459.  
  460. Changes the get_bits driver procedure so it always reads a single
  461. scan line, and optionally does not copy the data.  THIS IS A
  462. NON-BACKWARD-COMPATIBLE CHANGE.  However, this change does not affect
  463. any existing printer driver, since these all go through intermediate
  464. routines in gdevprn.c.
  465.  
  466. Changes gdevprn.h, and the relevant printer drivers, so that -DA4
  467. will change the default paper size for any printer driver.
  468.  
  469. Allows the use of NULL or 0 for default procedures in the driver
  470. procedure vector.
  471.  
  472. Adds an optional map_cmyk_color procedure to the driver procedure
  473. vector.
  474.  
  475. Changes the Epson driver so that the minimum amount of white space
  476. required to use a tab is an easily changed parameter.
  477.  
  478. Changes the BGI driver to use separate segments for the Borland
  479. device drivers, to reduce the risk of overflowing a segment.
  480.  
  481. Adds an optimization option (normally enabled) to the PGM and PPM drivers
  482. such that they revert to PBM or (for PPM) PGM if the page can be
  483. represented that way.
  484.  
  485. Adds a new (optional) driver procedure to get the procedure vector
  486. for external fonts.
  487.  
  488. Adds an argument to gp_open_printer to indicate whether the file should be
  489. opened in binary or text mode.  THIS IS A NON-BACKWARD-COMPATIBLE CHANGE.
  490. However, this change does not affect any existing printer driver, since
  491. these all go through intermediate routines in gdevprn.c.
  492.  
  493. Changes the LN03/LA50/LA75 driver so it uses a text record mode to open
  494. the output file under VMS (by adding an argument to gp_open_printer to
  495. indicate this.)
  496.  
  497. Allows (indeed, encourages) drivers to use far_data to declare the device
  498. structure, primarily to avoid overflowing the 64K data segment under MS
  499. Windows.  Changes the file output drivers and many of the printer drivers
  500. to declare their device structures as far_data.
  501.  
  502. Replaces the AT&T 3B1 driver with an updated version (from the same
  503. contributor).
  504.  
  505. Changes the Epson BJ driver and the SPARCprinter driver so they align
  506. the (0,0) point of the page with the physical corner of the paper
  507. rather than with the origin of the printable area.
  508.  
  509. Removes the EIZO MDB-10 driver, since it caused complications for the
  510. EGA and VGA drivers and is not a widely used device.
  511.  
  512. Interpreter
  513. -----------
  514.  
  515. Fixes bugs:
  516.     - The entry for the copydevice operator in the operator table
  517. was initialized incorrectly.
  518.     - printobject and writeobject didn't handle nested arrays.
  519.     - restore didn't properly close the current file (if
  520. appropriate), causing an invalidaccess error.
  521.     - buildfont required the presence of a valid, 4-element
  522. FontBBox.  (The Red Books say it's required, but Adobe interpreters
  523. don't require it; some DEC software generates a 3-element FontBBox.)
  524.     - resourceforall had several bugs; it didn't do even
  525. approximately the right thing.  There were quite a few other problems
  526. with the implementation of resources.
  527.     - setfont, makefont, and scalefont would accept a font with
  528. no FID entry.
  529. *    - Loading a .PFB font left the file open (until the next
  530. restore or quit).
  531.     - The default (null) font didn't include a PaintType entry,
  532. which some PostScript files expected.
  533. *    - The ASCIIHexDecode filter sometimes thought the underlying
  534. stream was at EOF even when there was (at most one buffer's worth of)
  535. data left.
  536.     - iscan.c included <ctype.h> before std.h, causing type name
  537. clashes on some systems.
  538. *    - save and restore didn't handle the pointers in the graphics
  539. state correctly; for example, the current font wasn't restored
  540. properly.
  541.     - Binary object sequences at the top interpreter level didn't
  542. get executed immediately.
  543.     - On high-resolution devices, the default transfer function
  544. converted almost-white grays to very light grays rather than white.
  545.     - The `string' operator was checking the string length
  546. against max_uint rather than max_ushort, which could cause invalid
  547. lengths to be accepted.
  548. *    - deviceinfo caused a stackunderflow error.
  549. *    - idiv could give incorrect results for quotients or
  550. remainders that didn't fit in 24 bits.
  551. *    - The ASCII85Encode filter padded trailing bytes with 1's
  552. rather than 0's.
  553. *    - The ASCII85Decode filter had a typo that produced incorrect
  554. results if there were exactly 2 trailing bytes.
  555.     - findlibfile didn't push a copy of the file name if it was
  556. the name of a special (%) file.
  557.     - setduplexmode was not defined in statusdict, causing
  558. /undefined errors from some poorly designed input files.
  559. *    - The CCITTFaxDecode filter had several bugs in 2-D decoding.
  560. *    - The ASCII85Decode filter didn't read ahead to detect EOD if
  561. it fell precisely on a buffer boundary.
  562.     - If a file mentioned on the command line redefined `start',
  563. Ghostscript would run the new definition rather than the built-in one
  564. after processing all the files on the command line.
  565.     - The SCO ODT compiler couldn't handle the conditionals in the
  566. ngetc (iscan.c) and sgetc* (stream.h) macros.
  567.     - makefont and scalefont didn't cache the PostScript dictionaries
  568. for scaled fonts.
  569.     - Changing the elements of the Encoding of a font dynamically
  570. didn't take effect if the character was already cached.
  571.     - makefont and scalefont didn't add the (undocumented) OrigFont
  572. and ScaleMatrix entries to the new font.
  573. *    - findfont insisted that the font name be a string or a name.
  574.     - filenameforall could cause an incorrect transfer of control
  575. if no files matched the pattern.
  576. *    - ISOLatin1Encoding had hyphen instead of minus at code 45.
  577.     - restore didn't reset saved_cbot and saved_ctop correctly;
  578. as a result, some freed blocks could get abandoned rather than put on
  579. the free list.
  580.     - Some numerical constants in zarith.c assumed that longs
  581. occupied 32 bits.
  582.  
  583. Implements additional Level 2 features:
  584.     - %device%file names (only the "os" device is provided).
  585.     - <~ ~> for ASCII-85 strings.
  586.     - Binary error messages.
  587.     - BuildGlyph.
  588.     - CCITTFaxDecode filter entries EndOfBlock, Rows, and
  589.     (undocumented) FirstBitLowOrder.
  590.     - {set/current}{color/colorspace/overprint/colorrendering/
  591.     blackgeneration/undercolorremoval}.  (See below under library
  592.     for limitations.)
  593.     - Decode for the dictionary form of image.
  594.     - File access modes a, r/w/a+.
  595.     - Font entries CDevProc, Metrics2, and WMode.
  596.     - Font operators cshow, findencoding, rootfont, and
  597.     setcachedevice2.
  598.     - glyphshow (emulated with PostScript code).
  599.     - languagelevel.
  600.     - realtime.
  601.     - setbbox.
  602.     - (Subset of) system and user parameters.
  603.     - xshow, yshow, and xyshow.
  604.     - XUIDs for fonts.
  605.  
  606. Moves the installation of systemdict and the initial allocation of
  607. globaldict (if relevant) and userdict from gs_init.ps to iinit.c.
  608.  
  609. Makes Level 2 features dynamically selectable through the
  610. .setlanguagelevel operator; disables all Level 2 features
  611. (specifically including automatic dictionary expansion) unless the
  612. level2 feature is included and active.
  613.  
  614. Adds the .knownget operator for speeding up system procedures.
  615.  
  616. Renames the type1addpath operator as .type1addpath; adds an optional
  617. left side bearing argument; changes it so it does not do the
  618. setcachedevice, fill, or stroke, but does do a moveto for the
  619. character width.  Changes Type1BuildChar appropriately.  (All this is
  620. needed to make WMode work.)
  621.  
  622. Removes the .setmetrics operator, which is no longer needed.
  623.  
  624. * Changes the meaning of the user_errors argument to gs_run_file and
  625. gs_run_string so that -1 means always return on an error, 0 means
  626. only return on an error not within a `stopped'.
  627.  
  628. Adds all the necessary checks and operators for local/global VM, but
  629. doesn't actually implement local/global mode.
  630.  
  631. Changes setcachedevice back so that it requires 4 numbers on the
  632. stack rather than a 4-element array.  (It was changed to be the other
  633. way in release 2.0, but that was because I didn't realize that fonts
  634. had to have an executable FontBBox, and some of the Ghostscript fonts
  635. didn't.)
  636.  
  637. Changes all the filter operators from .filterxxx to .filter_xxx, and
  638. removes the need to enumerate them in gs_init.ps.
  639.  
  640. Adds .oserrno and .oserrorstring operators for getting the last OS
  641. error (in the current context).
  642.  
  643. Changes gs_finit similarly to gp_exit.  Adds gs_exit_with_code that
  644. takes both an exit status and a Ghostscript error code.
  645.  
  646. Changes the name of name.h to iname.h.
  647.  
  648. Adds support for the `interrupt' error (but doesn't provide any standard
  649. way of generating one, other than through the gp_check_interrupts polling
  650. function).
  651.  
  652. Adds copyright to systemdict.
  653.  
  654. Changes the spot halftone screen to an elliptical screen supplied by
  655. Berthold K. P. Horn.
  656.  
  657. Adds a check that the first token in gs_init.ps is an integer.  In
  658. conjunction with other code in gs_init.ps, this should catch all attempts
  659. to run Ghostscript with a gs_init.ps that doesn't match the executable.
  660.  
  661. Changes all relevant occurrences of sizeof to size_of in order to
  662. work with the buggy SVR4.2 C compiler.
  663.  
  664. Changes gp_exit so it is passed both the Ghostscript error code and
  665. the exit status code as arguments.  This is backward-compatible for
  666. all but the pickiest compilers.
  667.  
  668. Adds a call on gp_check_interrupts() after fwrite calls in the stream
  669. machinery.  This prevents lengthy console output from locking out
  670. other programs.
  671.  
  672. Changes a couple of occurrences of op_def_ptr in iinit.c to work around a
  673. `const' bug in Sun's SC1.0 compiler.
  674.  
  675. Adds a special hack in the 'where' operator to work around a bug in Aldus
  676. Freehand 2.x.
  677.  
  678. Changes all empty argument lists from () to (void), which is the ANSI
  679. C syntax.
  680.  
  681. Adds a hack to ignore ^[ and ^D^[ tokens, to work around the prologue
  682. and epilogue emitted by the MS Windows LaserJet IV driver.
  683.  
  684. Defines the processcolors operator, which should not be needed, but
  685. is required because of bugs in Lotus 1-2-3 and Adobe PhotoShop.
  686.  
  687. Changes the allocator (ialloc) to fill all allocated and/or freed
  688. blocks with a marker if gs_alloc_debug is set, as gs_malloc and
  689. gs_free already do.
  690.  
  691. Library
  692. -------
  693.  
  694. Fixes bugs:
  695.     - 16-bit memory devices stored the bytes of each pixel in the
  696. wrong order.
  697.     - copy_mono did the wrong thing when copying 1 source chunk
  698. to 2 destination chunks with polarity inverted.  (This probably
  699. didn't affect any actual uses of Ghostscript.)
  700. *    - The compile-time check for ints being 2 or 4 bytes used the
  701. #error directive, which most compilers don't recognize.
  702.     - arc and arcn didn't do the right thing for degenerate
  703. (single-point) arcs, or for arcs drawn in the "wrong" direction that
  704. were multiples of 360 degrees.
  705.     - charpath did the wrong thing with Type 3 fonts.
  706.     - copyscanlines gave an error if the buffer was too large.
  707.     - The copy_mono procedure (used for text and halftones) for
  708. 2- and 4-bit-per-pixel memory and printer devices incorrectly
  709. incremented the destination pointer after every pixel, instead of
  710. only after every byte.
  711.     - The fill_rectangle procedure (used for graphics) for 2- and
  712. 4-bit-per-pixel memory and printer devices, if given any color other
  713. than all 0's or all 1's, multiplied the X coordinate and width by 2
  714. or 4, thereby filling the wrong area.
  715.     - The use of 'data' in both gs_type1_data and gs_font upset
  716. the VMS compiler.
  717.     - The `Flex' feature wasn't implemented for Type 1 fonts,
  718. which caused serious errors in rendering some fonts that use it.
  719. (Unfortunately, some Adobe fonts violate the specification, so we had
  720. to implement Flex to always use a curve.)
  721. *    - Stem width adjustment was too eager, producing very strange
  722. effects on small characters with tight curves (a curve point could
  723. get snapped to the other side of the open area).
  724.     - The allocator didn't align structures adequately on
  725. machines where sizeof(long) or sizeof(char *) was 8 bytes.
  726.     - The test for IEEE floating point gave an incorrect
  727. (negative) result on machines where sizeof(long) was 8 bytes.
  728.     - genarch.c assumed that the result of subtracting two
  729. pointers was an int, leading to a garbage arch.h file on systems
  730. where this was false.
  731. *    - The Type 1 font interpreter incorrectly reset the adjusted
  732. path position to be the same as the unadjusted path position whenever
  733. it returned control to the client (in particular, for callothersubr),
  734. leading to discontinuities and distortions in the character shapes.
  735. *    - Accented characters in Type 1 fonts often misplaced the
  736. accent to the left.
  737.     - gsmisc.c wouldn't compile on machines with 64-bit pointers,
  738. because _pad was 0, and ANSI compilers don't accept 0-length arrays.
  739.     - pathforall got confused if the client procedures modified
  740. the path.
  741.     - The command list file representation limited X and Y
  742. coordinates to 15 bits.
  743. *    - stroke could produce spikes or other garbage for mitered
  744. joins as a result of stroke adjustment.
  745.     - The params_size field of the null device was wrong, so
  746. scaling the null device produced unpredictable results.
  747.  
  748. Changes monobit memory devices to always store data big-endian.  This
  749. eliminates byte-swapping, at the cost of slightly slower rendering.
  750.  
  751. Removes the memswab* routines, since they are no longer needed.
  752.  
  753. Implements gs_cshow_[n_]init, which provides support for cshow, and
  754. gs_xyshow_[n_]init, which provides support for {x,y,xy}show.
  755.  
  756. Adds an optional left side bearing argument to gs_type1_interpret.
  757.  
  758. Changes gs_type1_interpret so it does not do a setcachedevice, fill,
  759. or stroke, but only appends the character outline to the path
  760. (including a moveto for the character width.)
  761.  
  762. Removes gs_setmetrics, which is no longer needed.
  763.  
  764. Implements gs_setcachedevice2, which provides support for
  765. setcachedevice2.
  766.  
  767. Speeds up gsave/grestore by allocating, deallocating, and copying as
  768. much as possible of the graphics state in a single operation.
  769.  
  770. Implements gs_{set/current}{color/colorspace/overprint/colorrendering/
  771. blackgeneration/undercolorremoval}.  Device, indexed (with table, not
  772. with procedure), CIE, and (substituted) separation colors are
  773. supported; some of the setup code for patterns is also present.
  774.  
  775. Increases the size of temporary file names in gdevprn.h from 30
  776. characters to 60.
  777.  
  778. Changes the character cache to be allocated dynamically in chunks.
  779.  
  780. Splits gxcache.c into gxccache.c (fast "hit" code) and gxccman.c (all
  781. other code).
  782.  
  783. Changes all occurrences of sizeof to size_of in order to work with the
  784. buggy SVR4.2 C compiler.
  785.  
  786. Adds a new concept of "external fonts", which allow a driver to
  787. substitute its own fonts for the ones obtained through the normal
  788. font machinery.
  789.  
  790. Changes all empty argument lists from () to (void), which is the ANSI
  791. C syntax.
  792.  
  793. Version 2.5.2 (9/20/92)
  794. =============
  795.  
  796. This is yet another bug fix release to (finally!) get the PCL drivers
  797. working again.
  798.  
  799. Procedures
  800. ----------
  801.  
  802. Fixes bugs:
  803.     - The comment in devs.mak for cdjcolor said it used 8 bits
  804. per pixel, rather than the correct 24.
  805.  
  806. Adds gsbj/dj/lj/lp and gslp.ps to the installed files on Unix
  807. systems.
  808.  
  809. Removes dps.dev and level2.dev from the standard configurations on
  810. all platforms, since the presence of the setcolor operator was
  811. causing the output of some common applications to fail.
  812.  
  813. Utilities
  814. ---------
  815.  
  816. Fixes bugs:
  817.     - font2c produced invalid output for any font that didn't use
  818. StandardEncoding or ISOLatin1Encoding.
  819.  
  820. Platforms
  821. ---------
  822.  
  823. Fixes bugs:
  824.     - gp_sysv.c required an extern long timezone.
  825.  
  826. Drivers
  827. -------
  828.  
  829. Fixes bugs:
  830.     - The PCL drivers were *still* doing the wrong thing about
  831. zeroing the seed row for Mode 3 compression.
  832.     - Setting the resolution with -r didn't work under Windows.
  833.     - The Windows driver got a stack overflow if it was ever
  834. asked to display a bit image wider than 32 pixels.
  835.     - The Tseng driver didn't sense the model (ET3000 vs. ET4000)
  836. correctly.
  837.  
  838. Adds the eps9high device to the standard MS-DOS makefiles.
  839.  
  840. Interpreter
  841. -----------
  842.  
  843. Fixes bugs:
  844.     - gs_run_string used gs_user_errors (a global) rather than
  845. user_errors (its argument) to control error handling.  (This does not
  846. affect normal operation of Ghostscript, only use as a server.)
  847.     - eexec popped the top element of the dictionary stack
  848. afterwards even if the encrypted code had pushed something onto it.
  849. This caused problems for some badly written PostScript code.
  850.     - The printed form of real numbers didn't always include a
  851. decimal point, causing compatibility problems.
  852.  
  853. Makes -s and -d work for device properties.
  854.  
  855. Increases the cache limit on large-memory systems.
  856.  
  857. Adds a check to ensure that the revision of gs_init.ps matches that
  858. of the interpreter.
  859.  
  860. Adds the .knownget operator.
  861.  
  862. Library
  863. -------
  864.  
  865. Fixes bugs:
  866.     - The raster computation in clist_render_init, and the
  867. computation of state_size in clist_open, didn't widen an operand to
  868. long, leading to possibly incorrect operation for 24-bit-per-pixel
  869. printers on MS-DOS systems.
  870.     - The flatness was set too large for Type 1 characters,
  871. leading to visible straight edges instead of curves at large sizes.
  872.     - Type 1 fonts that contained out-of-range coordinates would
  873. produce garbled output.  (This was not a problem with the standard
  874. Ghostscript fonts, or with Adobe Type Manager fonts.)
  875.     - gschar0.c wouldn't compile, because it referred to a
  876. non-existing structure member penum->chr.  (This had no effect on
  877. Ghostscript's operation.)
  878.     - The curve flattener required line segments to be no more
  879. than 8 x the flatness in length, leading to an enormous number of
  880. segments.
  881.     - pathforall would cause an addressing fault if the path
  882. consisted of only a moveto.
  883.  
  884. Refactors some header files so that std.h is always included before
  885. any system header file that might include sys/types.h.
  886.  
  887. Adds logic for removing top and bottom blank rows in cached
  888. characters.  (This is the beginning of compression for the cache.)
  889.  
  890. Changes the arguments of memswab2/4 from char * to byte *, for more
  891. accurate type conformance.
  892.  
  893. Version 2.5.1 (9/11/92)
  894. =============
  895.  
  896. This is the usual bug fix re-release.
  897.  
  898. Procedures
  899. ----------
  900.  
  901. Fixes bugs:
  902.     - The makefile rules for compiled fonts had a circular
  903. dependency.
  904.     - `make begin' didn't work properly on all platforms.
  905.  
  906. Ensures that all batch files end with a newline.  (The absence of the
  907. newline was confusing the GNU diff program.)
  908.  
  909. Documents the fact that the -dASCIIOUT switch no longer exists.
  910.  
  911. Utilities
  912. ---------
  913.  
  914. Fixes bugs:
  915.     - pstoppm didn't `bind' its internal procedures.
  916.     - grestoreall would undo the output device selected by
  917. pstoppm.
  918.  
  919. Changes the utilities for reading and writing Type 1 character
  920. outlines so they can work with stack representations as well as
  921. arrays.
  922.  
  923. Removes the pfbtogs.ps, phonbook.ps, and showpbm.ps utilities from
  924. the distribution.
  925.  
  926. Adds a gslj utility to parallel gslp and gsdj.
  927.  
  928. Platforms
  929. ---------
  930.  
  931. Adds the DeskJet 500C drivers (cdeskjet/cdj*) to the MS-DOS / Borland
  932. C++, MS-DOS / Watcom C/386, and MS-Windows configurations.
  933.  
  934. Removes the PCX file driver from the MS Windows executable, because
  935. the static data segment exceeded 64K.
  936.  
  937. Makes some changes in the Unix System V platform file (gp_sysv.c) and
  938. in time_.h and unixtail.mak to accommodate the 3B1.
  939.  
  940. Fonts
  941. -----
  942.  
  943. Fixes bugs:
  944.     - The Charter-Italic font was named bchi.pfa rather than
  945. bchri.pfa.
  946.     - The Cyrillic fonts (cyr.gsf, cyri.gsf) were omitted from
  947. the fileset.
  948.     - Ghostscript incorrectly assumed that all Type 1 fonts had a
  949. FontInfo dictionary.
  950.     - .loadfont used false PFBDecode, so a few .PFB fonts would
  951. get errors because the first eexec byte would be whitespace.
  952.  
  953. Changes font2c and its supporting code so that compiled fonts are
  954. location-independent.
  955.  
  956. Drivers
  957. -------
  958.  
  959. Fixes bugs:
  960.     - The margins for the H-P printers were still wrong.
  961.     - The H-P drivers accidentally cleared the compression seed
  962. row when switching compression modes.
  963.     - Some of the H-P drivers used the wrong control codes for
  964. skipping blank lines.
  965.  
  966. Adds user-supported drivers for the AT&T 3B1 console device, and for
  967. the NEC P6+ printer.
  968.  
  969. Updates the SunView driver with a new version supplied by a(nother)
  970. user.
  971.  
  972. Changes the X Windows driver so the Ghostscript window doesn't get
  973. input focus.
  974.  
  975. Changes the common code for the printer drivers so that if it can
  976. allocate a full bitmap but there isn't at least a minimum amount of
  977. memory left afterwards, it switches to banding.
  978.  
  979. Changes the Windows driver so it handles devices with more than 8
  980. bits per pixel.  (We haven't been able to test this.)
  981.  
  982. Adds a read-only PageCount device property (for printer devices
  983. only).
  984.  
  985. Changes all Aladdin-supported drivers to clip drawing requests to the
  986. ((0,0), (width,height)) rectangle of device space.
  987.  
  988. Interpreter
  989. -----------
  990.  
  991. Fixes bugs:
  992.     - Closing a NullEncode filter always gave an ioerror.
  993.     - If a single-character name occurred 1 character before the
  994. end of an input buffer, the character would be doubled.
  995.     - The procedures in gs_statd.ps didn't use "bind".
  996.     - Setting the page size didn't work properly with devices
  997. with rotated coordinate systems.
  998.     - If an error occurred, and the error object wasn't the last
  999. element of its procedure, the interpreter would re-execute the error
  1000. object after running the error handler.
  1001.     - Memory devices didn't get resized if HWSize was changed,
  1002. leading to out-of-bounds memory accesses.
  1003.  
  1004. Moves revision and revisiondate from gs_init.ps to iinit.c.  Adds a
  1005. -v switch that just prints these out.
  1006.  
  1007. Arranges things so that if Ghostscript is reading from a pipe (`-'
  1008. switch on the command line) and encounters an error, it exits with
  1009. status 1 rather than 0.
  1010.  
  1011. Changes the interpreter interface so the caller explicitly passes a
  1012. pointer for storing an error object.
  1013.  
  1014. Library
  1015. -------
  1016.  
  1017. Fixes bugs:
  1018.     - The automatic adjustment of the scaling for variant paper
  1019. sizes caused the image to get expanded when it should have been
  1020. contracted, and vice versa.
  1021.     - The curve flattener insisted that each line segment be no
  1022. more than 2 x the flatness in length, leading to an enormous number
  1023. of segments even when not necessary for accuracy.
  1024.     - flattenpath and strokepath discarded a trailing moveto.
  1025.     - strokepath treated "0-width" lines as really having a width
  1026. of zero, rather than one pixel.
  1027.     - Buffered devices weren't closed and reopened if the amount
  1028. of buffer space was changed.
  1029.     - stroke used the line cap at the beginning of each subpath
  1030. even if the subpath was closed.
  1031.  
  1032. Removes the requirement that the clipping rectangle fall in the
  1033. non-negative quadrant of device space.  (This was causing problems
  1034. for Ghostview, but removing it required adding the extra clipping
  1035. step to the drawing routines in the drivers.)
  1036.  
  1037. Version 2.5 (8/18/92)
  1038. ===========
  1039.  
  1040. This version adds Type 1 hinting, CCITTFax encoding and decoding, and
  1041. Microsoft Windows support, as well as the usual minor improvements
  1042. and bug fixes.
  1043.  
  1044. Procedures
  1045. ----------
  1046.  
  1047. Fixes bugs:
  1048.     - GSIMPATH, SLZWD, and SLZWE were omitted from the VMS
  1049. makefiles, and GSIM2OUT was not removed.
  1050.     - landscap.ps messed up the current path.
  1051.  
  1052. Adds new switches:
  1053.     -dSAFER disables file writing and directory modification.
  1054.     -dESTACKPRINT causes errors to print the execution stack with
  1055. == instead of =.
  1056.     -sOutputFile=<string> replaces -sOUTPUTFILE (which is still
  1057. recognized) for setting the output file or pipe for the default
  1058. (printer) device.
  1059.     -sPAPERSIZE=<sizename> initializes the paper size.
  1060.     -dBufferSpace=<number> sets the buffer size for the default
  1061. (printer) device.
  1062.  
  1063. For Unix systems, changes the directories in GS_LIB_DEFAULT from
  1064. `pwd` to $(gsdatadir), i.e., normally $(datadir)/ghostscript, where
  1065. datadir is normally /usr/local/lib.
  1066.  
  1067. Adds a note in the header file to the effect that the X Windows
  1068. driver expects to find header files in $(XINCLUDE)/X11, not in
  1069. $(XINCLUDE).
  1070.  
  1071. Changes -q so it defines QUIET as true instead of null (so it can be
  1072. used in the middle of the command line as well as at the beginning).
  1073.  
  1074. Renames the history.doc file as NEWS.
  1075.  
  1076. Utilities
  1077. ---------
  1078.  
  1079. Platforms
  1080. ---------
  1081.  
  1082. Fixes bugs:
  1083.     - The stack size was not getting increased on the Watcom
  1084. platform.
  1085.  
  1086. Removes "b" from the scratch file opening modes in gp_unix.c and
  1087. (conditionally) in gdevprn.c, to pacify the DECstation Ultrix system.
  1088.  
  1089. Adds a makefile (bcwin.mak) and a platform file (gp_mswin.c) for
  1090. Microsoft Windows.
  1091.  
  1092. On MS-DOS platforms (including Windows), uses the TEMP environment
  1093. variable to designate the directory for scratch files.
  1094.  
  1095. Changes std.h so that the VMS C compiler uses function prototypes and
  1096. 'const'.
  1097.  
  1098. Changes the VMS cc makefile so it doesn't use ansi2knr.
  1099.  
  1100. Fonts
  1101. -----
  1102.  
  1103. Fixes bugs:
  1104.     - findfont left an extra entry on the stack if it couldn't
  1105. find the default font.
  1106.  
  1107. Renames bchi, ncri, and puti as bchri, ncrri, and putri, to conform
  1108. with the naming scheme for other fonts.
  1109.  
  1110. Adds $(CCFLAGS) to the command line used for compiling fonts.
  1111.  
  1112. Converts the .pfa fonts (CharterBT, IBM Courier, and Utopia) to .gsf,
  1113. by removing eexec encryption and also removing some mysterious
  1114. unmapped characters from Courier.  This makes these fonts work with
  1115. DISKFONTS.
  1116.  
  1117. Changes the implementation of compiled fonts so they are read-only
  1118. and sharable (no external references).  (They are, however, not
  1119. position-independent.)
  1120.  
  1121. Provides a way to use compiled fonts on platforms that limit the
  1122. number of characters in an identifier.
  1123.  
  1124. Adds public-domain Cyrillic and Cyrillic-Italic fonts.
  1125.  
  1126. Adds a 'userdict begin' to .loadfont, because Type 3 fonts produced
  1127. by Fontographer expect a writable dictionary on the top of the stack.
  1128.  
  1129. Changes definefont for Type 1 fonts to insert UnderlinePosition and
  1130. UnderlineThickness entries in FontInfo if they are absent, because
  1131. many word processors incorrectly assume these entries are present.
  1132.  
  1133. Drivers
  1134. -------
  1135.  
  1136. Fixes bugs:
  1137.     - The documentation in use.doc said that the densities for
  1138. 9-pin Epson printers were 60x60 to 240x60, rather than 60x72 to
  1139. 240x72.
  1140.     - gdevprn.c smashed one byte beyond the end of the string
  1141. given as the OutputFile device property.
  1142.     - The X11 driver used XVisualIDFromVisual, which is not
  1143. defined in X11R3.
  1144.     - The SunView driver modified the input data, which was
  1145. declared as const.
  1146.     - The LaserJet IIP and III drivers shifted the page 185
  1147. pixels to the left and 0.25" down, because the initialization string
  1148. was incorrect.
  1149.     - The PCX driver wrote 16-bit values using the byte ordering
  1150. of the platform, rather than always LSB first.
  1151.     - For vertical spacing, the LaserJet and DeskJet drivers used
  1152. a command that spaces N/300", rather than N scan lines, but gave it a
  1153. parameter in scan lines.
  1154.     - The VESA driver didn't allocate a full 256-byte buffer for
  1155. reading the mode information from the BIOS, causing the stack to get
  1156. smashed by newer VESA implementations.
  1157.     - The VESA driver didn't use the scan line length returned by
  1158. the BIOS, causing garbage output for some cards and some resolutions.
  1159.     - The generic printer driver didn't free the bitmap when
  1160. closing the device, if it fit entirely in memory.
  1161.     - The PaintJet driver allocated its data areas on the stack
  1162. instead of with gs_malloc.
  1163.     - The generic printer driver didn't attempt to increase the
  1164. buffer size if it was too small.
  1165.     - The band list driver didn't split large bitmaps properly,
  1166. leading to garbled characters at high resolutions.
  1167.     - The GIF and PCX drivers used a color map that often turned
  1168. gray colors into non-grays.
  1169.  
  1170. Changes the default put_props procedure so that if the device is
  1171. open, setting HWSize and/or HWResolution closes the device and
  1172. reopens it.
  1173.  
  1174. Adds a driver for Microsoft Windows 3.n.
  1175.  
  1176. Updates the 'cdj' and 'dj500c' DeskJet 500C drivers with new versions.
  1177. (This are user-contributed drivers.)
  1178.  
  1179. Changes gdev_prn_put_props so OutputFile can be changed dynamically.
  1180.  
  1181. Updates the DEC LN03 driver to also handle the LA50 and LA75.  (This
  1182. is a user-contributed driver with a FSF copyright.)
  1183.  
  1184. Changes the LaserJet/DeskJet driver so that -DA4 in the makefile
  1185. makes A4 paper the default.  The driver now also sends an appropriate
  1186. page size selection command to the printer if the printer supports it.
  1187.  
  1188. Changes all the Aladdin-supported drivers to return appropriate error
  1189. codes rather than -1.
  1190.  
  1191. Adds a driver for the S3 86C911, a PC graphics accelerator used in
  1192. the popular Diamond Stealth board.  This is the first driver that
  1193. uploads character bitmaps to a device; others will probably follow.
  1194.  
  1195. Adds user-supplied code to the Epson driver so it will do triple
  1196. passes on 9-pin printers for higher resolution.
  1197.  
  1198. Adds user-supplied code for the PaintJet XL to the PaintJet driver.
  1199.  
  1200. Interpreter
  1201. -----------
  1202.  
  1203. Fixes bugs:
  1204.     - zdps1.c didn't include alloc.h.
  1205.     - On 32-bit systems, if maxlength of a dictionary was less
  1206. than the actual allocated space, length could become larger than
  1207. maxlength.
  1208.     - flushfile didn't actually flush data when reading.
  1209.     - The ASCII85Decode filter signalled EOF prematurely.
  1210.     - The scanner interpreted .3D.glorp as the number 0.3, rather
  1211. than as a name.
  1212.     - Closing a file freed the stream structure, creating
  1213. dangling references if there were other file objects pointing to the
  1214. same stream.
  1215.     - eexec called handleerror if an error occurred, instead of
  1216. letting the error propagate to an enclosing stopped.
  1217.     - gs.h made perror illegal, instead of defining it in terms
  1218. of strerror.
  1219.     - One-character names weren't being allocated at
  1220. initialization, so they could be left dangling after a restore.
  1221.     - Internal gsaves (i.e., the ones in show and setcachedevice)
  1222. didn't also save istate, so setfont inside a BuildChar procedure
  1223. might cause the font outside to get changed.
  1224.     - The allocator incorrectly freed objects in the current
  1225. chunk that were older than the current save.
  1226.     - mark was just an object, rather than an operator, so 'bind'
  1227. didn't bind it.  (This is theoretically a problem for null, true, and
  1228. false also, but even more unlikely to be a problem in practice.)
  1229.     - packed_get didn't cast packed integers to int, so negative
  1230. integer elements of packed arrays came out wrong.
  1231.     - quit just did a gs_exit, instead of returning to the driver
  1232. in an orderly way.
  1233.     - Because check_type_access checked for errors in the wrong
  1234. order, sometimes type errors were reported as access errors.
  1235.     - eq didn't check for stack underflow.
  1236.     - Some of the stream_procs structures weren't properly
  1237. declared const, leading to link errors on VMS.
  1238.  
  1239. Implements currentcolor, currentcolorspace, setcolor, and
  1240. setcolorspace (for DeviceGray, DeviceRGB, and DeviceCMYK only).
  1241.  
  1242. Implements the dictionary form of image and imagemask.  All the pairs
  1243. in the Decode array must be the same; Interpolate is ignored.  The
  1244. only supported color spaces are DeviceGray, DeviceRGB, and
  1245. DeviceCMYK.
  1246.  
  1247. Implements files as allowable sources for the image operators.
  1248.  
  1249. Removes the index field from the name structure, moving it to the
  1250. 'size' field of name refs.
  1251.  
  1252. Changes the unread/sungetc operation to require that the character be
  1253. the same as the last one read from the file.
  1254.  
  1255. Adds fflush calls to some debugging printout routines, because Unix
  1256. sometimes buffers terminal output.
  1257.  
  1258. Implements the CCITTFaxEncode and CCITTFaxDecode filters.  Implements
  1259. the general case of the SubFileDecode filter.
  1260.  
  1261. Changes definefont to treat a UniqueID of 0 as equivalent to no
  1262. UniqueID, because Fontographer output apparently often violates the
  1263. specification in this way.
  1264.  
  1265. Changes the default printer screen from 32.5 to 46 cells/inch.  (The
  1266. old value was appropriate for a hand-rotated cell with two spots in
  1267. it.)
  1268.  
  1269. Changes the utility routines to allow an integral real wherever an
  1270. integer parameter is expected in a dictionary, because Fontographer
  1271. produces fonts that violate the Adobe specification in this way.
  1272.  
  1273. Adds a `dosio' feature that provides direct access to memory and to
  1274. I/O ports under MS-DOS.  (This feature is not included in the
  1275. standard executables, of course.)
  1276.  
  1277. Changes the default character cache limit to a 1/4" x 1/4" character
  1278. at the default resolution, rather than basing it on the preallocated
  1279. cache size.
  1280.  
  1281. Removes support for t_color objects, which haven't actually been used
  1282. for several releases.
  1283.  
  1284. Implements setcmykcolor and currentcmykcolor as operators, so they
  1285. will interact properly with setcolorspace and currentcolorspace.
  1286.  
  1287. Changes the name of the file.h header file to files.h, to work around
  1288. a bug in the VMS header library.
  1289.  
  1290. Adds command line switches @file (to treat file as more command line,
  1291. to get around the DOS 128-character command line limit) and -ffile
  1292. (so one can specify file names that begin with - or @).
  1293.  
  1294. Changes the PFBDecode filter so it takes an additional boolean that
  1295. says whether or not to convert binary packets to hex.  (Conversion to
  1296. hex and back to binary accounted for a substantial amount of the time
  1297. required to load .PFB fonts.)
  1298.  
  1299. Splits off `copydevice' as a separate operator again.
  1300.  
  1301. Library
  1302. -------
  1303.  
  1304. Fixes bugs:
  1305.     - In the VMS environment, string_.h used its own prototypes
  1306. for the str... and mem... functions instead of <string.h>
  1307.     - gx_alloc_char_bits declared cdsize as long, but didn't
  1308. shorten it when passing it to shorten_cached_char.
  1309.     - Stroking didn't suppress fattening of the lines.
  1310.     - kshow didn't update the cached CTM information in the show
  1311. enumerator when returning from the callout, so further characters
  1312. could get drawn in the wrong place.
  1313.     - When a memory device returned its initial matrix, it
  1314. smashed the padding fields, which contained the interpreter's type
  1315. information.
  1316.     - setcachedevice didn't set the initial matrix in the cache
  1317. memory device.
  1318.     - image_set_rgb (in the image operators) didn't do a
  1319. gx_color_from_rgb, so in principle one could sometimes get incorrect
  1320. colors in an image.
  1321.     - The decision about whether or not to cache a character
  1322. bitmap incorrectly compared the character size against cmax rather
  1323. than cdata_size.
  1324.     - show didn't reset the in_cachedevice flag in the graphics
  1325. state, so characters rendered by a recursive show were never cached.
  1326.     - clip and eoclip didn't release the intermediate flattened
  1327. clip path, causing memory to be lost.
  1328.     - The tile_diff routine didn't handle the case of two
  1329. identical tiles properly; this produced garbage in the band list
  1330. file.
  1331.     - stringwidth didn't round the character origin to an
  1332. integral pixel; this interacted badly with hinting, causing
  1333. improperly hinted characters to wind up in the cache.
  1334.     - Bitmaps (including characters) were displaced, as well as
  1335. being clipped, if they intersected the top of a clipping region.
  1336.     - In gxclist and gdevmem1, the raster computation (although
  1337. not the result) could overflow an int on 16-bit machines.
  1338.  
  1339. Implements decoding (sample mapping) for image and imagemask.
  1340.  
  1341. Implements hinting for Type 1 fonts, based on (but not copying) the
  1342. algorithms from the X11R5 tape.
  1343.  
  1344. Changes curve rasterizing to use sampling, rather than recursive
  1345. subdivision, for characters.  This produces noticeably better output.
  1346. Speed penalty for non-cached characters is less than 10% at display
  1347. resolutions, up to 50% for 300 dpi printers.
  1348.  
  1349. Implements gs_setcmykcolor and gs_currentcmykcolor.  These are
  1350. semi-fake, since they simply convert the color to and from RGB, but
  1351. the former does set the current color space properly.
  1352.  
  1353. Changes clipping regions so they use the any-part-of-pixel rule
  1354. rather than the center-of-pixel rule.  This helps avoid dropouts when
  1355. using very small regions.
  1356.  
  1357. Implements stroke adjustment.
  1358.  
  1359. Version 2.4.2 (5/8/92)
  1360. =============
  1361.  
  1362. This is another quick release.  It finally fixes rotated halftone
  1363. screens, and cleans up a few minor problems from 2.4.1.
  1364.  
  1365. This release is being distributed only to beta testers and commercial
  1366. licensees, since I don't want to be distracted from working on 2.5.
  1367.  
  1368. Procedures
  1369. ----------
  1370.  
  1371. Fixes bugs:
  1372.     - UTRACE still appeared in the VMS makefiles.
  1373.     - The support files (*.bat, *.doc, *.gsf, *.ps, Fontmap,
  1374. COPYING, README) weren't included in the MS-DOS tar file.
  1375.     - The Unix install script didn't install landscap.ps.
  1376.  
  1377. Replaces the type1imagepath operator with PostScript code (impath.ps,
  1378. type1ops.ps) based on the new .imagepath operator.
  1379.  
  1380. Renames LICENSE as COPYING.
  1381.  
  1382. Utilities
  1383. ---------
  1384.  
  1385. Fixes bugs:
  1386.     - pcharstr.ps had an occurrence of Subrs rather than /Subrs,
  1387. causing it to not print the Subrs, or to get an error if there were
  1388. none.
  1389.     - font2c.ps didn't get the const declarations for string
  1390. dictionaries quite right.
  1391.     - The missing newline at the end of gsbj.bat confused GNU
  1392. diff.
  1393.     - ansi2knr would go into an infinite loop if a statement
  1394. exceeded its internal buffer size.
  1395.     - Compiled fonts would get processed by ansi2knr, which
  1396. messed them up.
  1397.  
  1398. Platforms
  1399. ---------
  1400.  
  1401. Fixes bugs:
  1402.     - Ghostscript didn't supply equivalents for rename and
  1403. gettimeofday, which some System V platforms lack.
  1404.     - The missing newline at the end of gp_dosfb.c confused GNU
  1405. diff.
  1406.  
  1407. Changes the Borland makefiles so that stack checking is only enabled
  1408. if DEBUG or TDEBUG is set.
  1409.  
  1410. Fonts
  1411. -----
  1412.  
  1413. Changes the names of the Utopia fonts from utrg/utb/utbi/uti to
  1414. putr/putb/putbi/puti, for consistency with the rest of the font names.
  1415. Changes cour/courb/courbi/couri to ncrr/ncrb/ncrbi/ncri likewise.
  1416.  
  1417. Replaces the Charter fonts with the CharterBT fonts donated by
  1418. Bitstream to the X11R5 distribution.
  1419.  
  1420. Adds font aliasing capability to Fontmap.  Replaces
  1421. Courier-[Bold]Oblique and ZapfChancery-MediumItalic by aliases.
  1422.  
  1423. Changes the FontBBox of the Hershey fonts to be an executable, rather
  1424. than a literal, array.
  1425.  
  1426. Drivers
  1427. -------
  1428.  
  1429. Fixes bugs:
  1430.     - The GIF driver omitted a `private' on the definition of
  1431. gif_print_page.
  1432.     - The GIF driver wrote 16-bit values using the byte ordering
  1433. of the platform, rather than always LSB first.
  1434.     - George Cameron's DeskJet 500C driver had an incorrect
  1435. control sequence for skipping blank lines.
  1436.  
  1437. Adds 'const' in many places, including the tile and bitmap arguments
  1438. of the tile_rectangle, copy_mono, and copy_color driver routines.
  1439. THIS IS A DRIVER INTERFACE CHANGE.  (Printer drivers are not
  1440. affected, since they don't implement these routines.)
  1441.  
  1442. Adds a driver for the Trident TVGA.
  1443.  
  1444. Interpreter
  1445. -----------
  1446.  
  1447. Fixes bugs:
  1448.     - alloc_free sometimes incorrectly chose to put an unaligned
  1449. block in an old segment on a freelist.
  1450.     - The default undercolor removal function returned its
  1451. argument rather than returning 0.
  1452.  
  1453. Adds NullEncode and SubFileDecode to the standard filters, since
  1454. bdftops uses the latter.
  1455.  
  1456. Adds RunLengthEncode and RunLengthDecode to the optional filters.
  1457.  
  1458. Removes the type1imagepath operator.  (It is still available as
  1459. PostScript code, impath.ps.)  Replaces it with a simpler outline
  1460. tracing operator .imagepath.
  1461.  
  1462. Adds 'const' in many places.
  1463.  
  1464. Makes fileposition (but not setfileposition) legal for NullEncode
  1465. filters.
  1466.  
  1467. Changes the default transfer function for high-resolution devices
  1468. from the identity function to the square root function.
  1469.  
  1470. Moves array_get from zgeneric.c to iutil.c.
  1471.  
  1472. Changes uses of fopen to add a "b" to the access mode, rather than
  1473. relying on the _fmode global variable on MS-DOS platforms.
  1474.  
  1475. Allows use of the -Z switch even when gsmain.c wasn't compiled with
  1476. -DDEBUG, since other modules might have been.
  1477.  
  1478. Reorganizes gs.c and gsmain.c so that the latter can be used in
  1479. server environments.
  1480.  
  1481. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  1482.  
  1483. Makes the number of permanent entries on the dictionary stack a
  1484. parameter, to allow inserting globaldict in the future.
  1485.  
  1486. Changes BlueShift in the Type 1 font Private dictionary to allow real
  1487. numbers.  (This differs from the Adobe specification, but at least
  1488. one commercial font has a real number for BlueShift.)
  1489.  
  1490. Library
  1491. -------
  1492.  
  1493. Fixes bugs:
  1494.     - The doubling check in init_ht (gxht.c) still sometimes
  1495. thought there was enough room to double the tile when there actually
  1496. wasn't.
  1497.     - Rotated halftone screens didn't work.
  1498.     - gxarith.h used #ifdef vax, rather than #if
  1499. !arch_floats_are_IEEE, to test whether IEEE floats were being used.
  1500.     - pathforall didn't report a trailing moveto.
  1501.  
  1502. Replaces gs_type1imagepath with gs_imagepath.
  1503.  
  1504. Allows sOUTPUTFILE=-, meaning output to stdout.
  1505.  
  1506. Adds 'const' in many places.
  1507.  
  1508. Replaces all uses of stdin/out/err with gs_stdin/out/err.
  1509.  
  1510. Version 2.4.1 (4/21/92)
  1511. =============
  1512.  
  1513. This is a quick release to fix minor problems discovered in 2.4, and
  1514. to add a few improvements that didn't quite make it into 2.4.  It
  1515. also adds GIF and PCX file support.
  1516.  
  1517. Procedures
  1518. ----------
  1519.  
  1520. Fixes bugs:
  1521.     - Some makefile dependencies, and the ccgs script, caused trouble
  1522. for parallel versions of `make'.
  1523.     - Compiling genarch with -O with gcc on the RS/6000 produced a
  1524. buggy executable.
  1525.  
  1526. Fixes some minor problems in make.doc.
  1527.  
  1528. Adds DEVICE_DEVS2..5 to handle long device lists.
  1529.  
  1530. Removes the need to set GS_RUN_EXE when using the Watcom compiler on
  1531. MS-DOS systems.
  1532.  
  1533. Gets rid of gs_ccfnt.ps, merging its function into gs_fonts.ps.
  1534.  
  1535. Gets rid of gconfig.ps; this information is now compiled in gconfig.c.
  1536.  
  1537. Utilities
  1538. ---------
  1539.  
  1540. Fixes bugs:
  1541.     - The palette for pstoppm in 8-bit mode didn't contain all 8
  1542. primary colors.
  1543.     - font2c used just values_ to mean &values_[0]; some compilers
  1544. couldn't handle this.
  1545.  
  1546. Makes font2c insert `const' in many appropriate places.
  1547.  
  1548. Drivers
  1549. -------
  1550.  
  1551. Fixes bugs:
  1552.     - The SunView driver had not been updated properly for 2.4 and was
  1553. pretty thoroughly broken.
  1554.     - None of the printer drivers worked properly with the Watcom
  1555. compiler, because stdprn was doing \n -> \r\n substitution.
  1556.     - If the generic printer driver couldn't allocate the requested
  1557. size command list buffer, it gave up rather than trying to allocate a
  1558. smaller buffer.
  1559.     - The SuperVGA drivers (except for the VESA driver) didn't
  1560. work with the Watcom compiler, because a couple of places in the
  1561. drivers weren't truncating the offset of "segmented" pointers
  1562. properly.
  1563.     - Some of the H-P used <esc>*b#Y rather than <esc>*p+#Y for
  1564. vertical positioning; this apparently is wrong, at least for the
  1565. LJIIp.
  1566.  
  1567. Removes the dependence of the X Windows driver on Xt, Xext, and Xmu.  As a
  1568. result, Ghostscript will not install a standard colormap itself, but it
  1569. will use one if one is already installed.
  1570.  
  1571. Adds a set of drivers for Portable Bitmap, Graymap, and Pixmap file
  1572. formats.
  1573.  
  1574. Adds drivers for monochrome, EGA/VGA-style, and SuperVGA-style PCX
  1575. file formats.
  1576.  
  1577. Adds drivers for monochrome and 256-color GIF file formats.
  1578.  
  1579. Fonts
  1580. -----
  1581.  
  1582. Adds ZapfChancery-MediumItalic as a copy of ZapfChancery-Oblique.
  1583.  
  1584. Interpreter
  1585. -----------
  1586.  
  1587. Fixes bugs:
  1588.     - A value with l_new set could 'escape' to save level 0 on a
  1589. stack; if stored, it prevented the slot from being saved and restored
  1590. properly.
  1591.     - 16#7fffffff + 1 gave the floating point equivalent of -2^31, not
  1592. 2^31.
  1593.     - The PFBDecode filter computed the packet length incorrectly if
  1594. the 0x8000-bit of the length was set.
  1595.     - 5-byte numbers in Type 1 CharStrings complained of a rangecheck
  1596. if they exceeded 16 bits, rather than if they exceeded the integer part of
  1597. a fixed.
  1598.     - (, ), and \ appearing in file name arguments in the command
  1599. line did not work properly.
  1600.  
  1601. Adds 'const' in many places.
  1602.  
  1603. Changes the random number generator to be the same as the one used in
  1604. Level 2 PostScript (as reported by Ed Taft on comp.lang.postscript).
  1605.  
  1606. Exits with code 1 rather than code 0 on an unrecoverable error detected at
  1607. the PostScript level.
  1608.  
  1609. Makes dictionaries expand automatically when they fill up.
  1610.  
  1611. Adds gp_exit to complement gp_init.
  1612.  
  1613. Changes dictionaries to always allocate a power of 2 entries on
  1614. 32-bit machines.  Changes the name table to allocate indices
  1615. scattered, so dictionary lookup doesn't have to do a multiply to
  1616. scramble the index.
  1617.  
  1618. Changes the handling of currentfile to do "shallow binding" so stack
  1619. searching is almost never required.
  1620.  
  1621. Library
  1622. -------
  1623.  
  1624. Fixes bugs:
  1625.     - arc and arcn got a numeric exception if the radius was zero.
  1626.     - The undocumented 15 opcode in Type 1 fonts wasn't ignored.
  1627.     - PaintType 3 wasn't allowed.  (It isn't clear what it should
  1628. mean; we treat it as equivalent to 0.)
  1629.     - The VAX/VMS C compiler was generating incorrect code for the
  1630. chi_bits and cmask macros in gdevmem, producing incorrect output.
  1631.     - If the result of the slow algorithm for intersecting clipping
  1632. paths was a rectangle, the wrong thing happened (cbox didn't get set).
  1633.     - gx_path_is_rectangle didn't recognize open rectangles.
  1634.     - clist_change_tile didn't check properly whether the tile
  1635. size had changed, so changing the screen could produce invalid band
  1636. files.
  1637.     - The image operators did the wrong thing in the 1-for-1
  1638. case, interleaving N bytes of data with 7*N bytes of garbage.
  1639.     - stroke sometimes handled bevel and miter joins wrong in
  1640. reflected coordinate systems.
  1641.     - init_ht checked incorrectly whether there was enough room
  1642. to Y-replicate tiles, so sometimes it did it when it shouldn't have.
  1643.     - stroke sometimes thought lines were thin when they weren't.
  1644.  
  1645. Adds 'const' in many places.
  1646.  
  1647. Adds support for 2- and 4-bit-per-pixel memory devices.
  1648.  
  1649. Version 2.4 (3/25/92)
  1650. ===========
  1651.  
  1652. This is a major release that adds SuperVGA support, support for Metrics,
  1653. settable device properties, and incremental font loading.  It also
  1654. includes important performance improvements, based on rewrites of some key
  1655. algorithms, and quite a few new Level 2 / Display PostScript facilities.
  1656.  
  1657. Procedures
  1658. ----------
  1659.  
  1660. Fixes bugs:
  1661.     - The rule for compiling gconfig.c didn't include the -I switches.
  1662.     - .bat files were being distributed with a \n line terminator
  1663. rather than \r\n.
  1664.     - A CLOSE MODULE_LIST was needed after END_COMPILE: in the VMS
  1665. command files.
  1666.     - Unix systems couldn't handle multiple drivers with overlapping
  1667. sets of files.
  1668.     - -s<name> defined <name> as a null, rather than as an empty string.
  1669.  
  1670. Adds gconfig.ps to the list of needed configuration files.
  1671.  
  1672. Changes the way that the makefile handles nested .h files, so that it
  1673. doesn't have to `touch' them.
  1674.  
  1675. Adds the loadallfonts procedure to gs_fonts.ps.
  1676.  
  1677. Changes the standard DOS configuration to include VGA, EGA, VESA, Epson,
  1678. BubbleJet, and H-P printer drivers.
  1679.  
  1680. Renames ghost.mak as gs.mak, and gdevs.mak as devs.mak.
  1681.  
  1682. Adds a USE_ASM flag so that one can build a DOS version of Ghostscript
  1683. without having an assembler.
  1684.  
  1685. Splits off common code from the two MS-DOS makefiles into tccommon.mak.
  1686.  
  1687. Replaces the COPYING and LICENSE files with a new LICENSE file containing
  1688. version 2 of the GNU General Public License.
  1689.  
  1690. Removes DEVICES and DEVICE_OBJS from the makefiles, since they are no
  1691. longer needed.
  1692.  
  1693. Adds a GS_DEVICE environment variable to supply a default device name if
  1694. desired.
  1695.  
  1696. Adds ansihead.mak and unix-ansi.mak, to parallel [g]cc-head.mak and
  1697. unix-[g]cc.mak, for other ANSI C compilers.
  1698.  
  1699. Changes the way that optional features are defined in the makefiles, so
  1700. that they actually work.
  1701.  
  1702. Adds support for the Watcom C/386 compiler.
  1703.  
  1704. Allows # in the command line as equivalent to =, to compensate for
  1705. brain-damaged MS-DOS shell.
  1706.  
  1707. Adds -sOUTPUTFILE= to set the output file or pipe.
  1708.  
  1709. Adds -dWRITESYSTEMDICT to leave systemdict writable.
  1710.  
  1711. Utilities
  1712. ---------
  1713.  
  1714. Fixes bugs:
  1715.     - pcharstr.ps insisted on having Subrs be present in the font.
  1716.     - pcharstr.ps decoded negative numbers between -108 and -1131
  1717. incorrectly.
  1718.     - pfbtogs.ps didn't handle packets longer than 64K correctly.
  1719.  
  1720. Changes the bdftops utility so that it makes entries for UnderlinePosition
  1721. and UnderlineThickness in FontInfo, and so that it always records a
  1722. FullName (the FontName if no other is provided).
  1723.  
  1724. Changes the name of the pfbtops utility to pfbtogs, because groff already
  1725. includes a program called pfbtops.
  1726.  
  1727. Adds the gslp utility for doing "line printing" of text files, similar to
  1728. enscript + lpr.
  1729.  
  1730. Adds a new variable DITHERPPI that enables a different dither pattern,
  1731. claimed to be better for printers.
  1732.  
  1733. Adds the font2c utility for compiling Type 1 fonts into C, so they can be
  1734. linked into an executable rather than loaded dynamically.
  1735.  
  1736. Drivers
  1737. -------
  1738.  
  1739. Fixes bugs:
  1740.     - gdev_prn_copy_scan_lines was erroneously masking the last byte
  1741. of data even on color printers, as was paintjet_print_page.
  1742.     - The TruFax driver had a couple of compilation errors, since it
  1743. hadn't been compiled in a while.
  1744.     - The BGI driver sometimes didn't consult BGIPATH when looking for
  1745. .BGI files.
  1746.     - initclip did the wrong thing with memory devices.
  1747.     - The BGI driver didn't look in BGIDIR for .BGI files.
  1748.     - The Epson driver didn't set the right margin properly with
  1749. ESC+Q.
  1750.     - The BJ-10e driver was badly broken.
  1751.     - gdev_prn_open/close_printer didn't reset the command list file,
  1752. so it was taking quadratic time to print multi-page documents.
  1753.  
  1754. Adds color to the SunView driver.
  1755.  
  1756. Adds selectable resolution (75, 100, 150, or 300 DPI) to the
  1757. DeskJet/LaserJet driver.
  1758.  
  1759. Changes gssetdev so that drivers can specify special libraries to be
  1760. loaded, as well as object files.
  1761.  
  1762. Adds a driver for VESA-compliant SuperVGA displays.  This driver handles
  1763. all resolutions from 640 x 400 up to 1280 x 1024, in 256-color mode.  The
  1764. default is VGA resolution (640 x 480).
  1765.  
  1766. Adds a driver for the ATI Wonder SuperVGA card, and for SuperVGA cards
  1767. using the Tseng Labs ET3000 or ET4000 chip such as the STB VGA EM-16 and
  1768. the Orchid ProDesigner II (256-color modes only).
  1769.  
  1770. Adds a driver for Trident and Tseng Labs SuperVGA cards in 800 x 600,
  1771. 16-color modes (for cards with only 256K of memory).
  1772.  
  1773. Adds user-contributed drivers for the Ricoh 4081, DEC LN03, Canon LBP-8II,
  1774. and H-P DeskJet 500C printers.
  1775.  
  1776. Adds Tim Theisen's Ghostview changes to the X11 driver.
  1777.  
  1778. MAKES NON-BACKWARD-COMPATIBLE CHANGES TO THE DRIVER PROCEDURE INTERFACE as
  1779. follows:
  1780.  
  1781.     - Changes map_rgb_color and map_color_rgb to always work in a
  1782.         16-bit color value space, rather than a space defined by the
  1783.         maximum number of distinct colors provided by the device.
  1784.  
  1785.     - Adds an argument to the output_page procedure to indicate
  1786.         whether the procedure is being called for copypage or
  1787.         showpage, and a num_copies argument.
  1788.  
  1789.     - Adds a gx_bitmap_id to the copy_ and tile_ procedures, so that
  1790.         drivers can cache bitmaps in the server or device if they want
  1791.         to.
  1792.  
  1793.     - Removes fill_trapezoid and tile_trapezoid.
  1794.  
  1795.     - Adds a new get_bits procedure for reading the bits back from the
  1796.         driver buffer (when possible), replacing copy_scan_lines.
  1797.         This procedure takes a new argument describing padding and
  1798.         byte swapping, and returns a different value from
  1799.         copy_scan_lines.
  1800.  
  1801.     - Adds get_props and put_props procedures for accessing arbitrary
  1802.         additional properties of devices.  The interface is quite
  1803.         complex, but provides a great deal of flexibility.
  1804.  
  1805. See drivers.doc for details.
  1806.  
  1807. Changes gdev_mem_bytes_per_scan_line to gdev_prn_bytes_per_scan_line.
  1808.  
  1809. Adds a user-contributed driver for DigiBoard, Inc.'s fax software.
  1810.  
  1811. Fonts
  1812. -----
  1813.  
  1814. Changes Type1BuildChar so it uses the information from the Metrics
  1815. dictionary in the font, if Metrics is present.
  1816.  
  1817. Changes findfont (.loadfont) so it recognizes .PFB fonts and can load them
  1818. directly.  Also changes .loadfont to disable packing temporarily, because
  1819. some fonts rely on procedures being writable (!).
  1820.  
  1821. Interpreter
  1822. -----------
  1823.  
  1824. Fixes bugs:
  1825.     - The hypot function is not available on some Unix systems.
  1826.     - Ghostscript didn't flush and close files when exiting.
  1827.     - In statusdict, the /margins procedure used .leftmargin, but
  1828. /setmargins used .lmargin.
  1829.     - An out-of-range putinterval would simply do nothing, rather than
  1830. reporting an error.
  1831.     - If an attempt to allocate a block larger than the allocator's
  1832. chunk size (20K) failed, the allocator would erroneously think it had
  1833. succeeded.
  1834.     - The bind operator made the top-level procedure read-only, as
  1835. well as interior procedures.
  1836.     - gs.c copied 1 extra character for the value of strings defined
  1837. on the command line with -s...=, which could smash the first byte of the
  1838. next object in memory.
  1839.     - copying a dictionary erroneously required the maxlength of the
  1840. destination to be greater than or equal to the maxlength of the source,
  1841. rather than the length of the source.
  1842.     - undef didn't correctly decide when to mark a deleted entry as
  1843. deleted vs. free; as a result, some keys couldn't be looked up properly
  1844. after an undef.
  1845.     - type1encrypt and type1decrypt didn't set the size of the result
  1846. properly.
  1847.     - cvi and cvr didn't allow leading or trailing whitespace in
  1848. strings.
  1849.     - cvs didn't cause an error if the destination string was too
  1850. short.
  1851.     - Many operators didn't check correctly for stack underflow (off
  1852. by 1).
  1853.     - `for' used reals, rather than integers, if the limit was a real,
  1854. even if the initial value and increment were integers.
  1855.     - `restore' didn't properly invalidate copies of the save object
  1856. being restored from; `save dup restore restore' would crash.
  1857.     - `restore' sometimes didn't undo stores into matrices that were
  1858. stored into by operators.  (The identity matrix always had l_new set.)
  1859.     - readline gave a rangecheck if the input line exactly filled the
  1860. string.
  1861.     - `--' as the last switch on the command line caused a crash
  1862. rather than an error message.
  1863.     - On MS-DOS systems, filenameforall didn't handle patterns with a
  1864. drive or directory specifier properly.
  1865.     - stroke sometimes called gz_draw_line_fixed even if the line went
  1866. outside the clipping box by 1 pixel.
  1867.  
  1868. Changes the loop that binds procedure "operators" to entirely disable the
  1869. handling of the typecheck error, rather than to use stopped.  This cuts
  1870. initialization time significantly, and also eliminates about 35K of wasted
  1871. space (for saving the stacks).
  1872.  
  1873. Changes the version "operator" so it returns 47.0.  Adds "revision" to
  1874. define the Ghostscript version # x 100.
  1875.  
  1876. Adds gscurrentresolution and gssetresolution procedures for getting and
  1877. setting the device resolution.
  1878.  
  1879. Adds -r<res> and -r<xres>x<yres> as command line options for setting
  1880. device resolution.
  1881.  
  1882. Adds a facility for incrementally loading the individual CharStrings of a
  1883. Ghostscript font from the disk.  This can save a lot of memory, at the
  1884. expense of slower rendering.  (It is intended primarily for MS-DOS
  1885. systems.)
  1886.  
  1887. Changes findlibfile to return the name of the file that was actually
  1888. opened, as well as the file itself, when the operation succeeds.
  1889.  
  1890. Changes the name of the main entry to the interpreter from interpret to
  1891. gs_interpret, because of a conflict with a Data General library procedure.
  1892.  
  1893. Adds the .setmetrics operator to set the metrics for the current
  1894. character for Type 1 fonts.
  1895.  
  1896. Adds more LaserWriter-specific entries to statusdict.
  1897.  
  1898. Gives names to all the internal `operators', so they will print out
  1899. reasonably when an error occurs.
  1900.  
  1901. Extends the status operator to accept a string and return file
  1902. information, as defined for Level 2 PostScript.
  1903.  
  1904. Adds the filter operator and some specific filters: ASCII85Encode,
  1905. ASCII85Decode, ASCIIHexEncode, ASCIIHexDecode, eexecDecode, NullEncode,
  1906. PFBDecode, and the null case of SubFileDecode.
  1907.  
  1908. Extends the scanner to recognize the Level 2 << and >> tokens.
  1909.  
  1910. Adds a facility for extracting the text strings from a PostScript file and
  1911. writing them out in a simple format (selected by -dASCIIOUT, implemented
  1912. by gs_2asc.ps).
  1913.  
  1914. Implements all of the remaining Display PostScript facilities that are
  1915. also in Level 2 (i.e., everything in section A.1.3 of the PostScript
  1916. Language Reference Manual, Second Edition, that is not also in section
  1917. A.1.2).  The virtual memory operations are all stubs; the new halftone
  1918. options are not fully implemented.
  1919.  
  1920. Changes makeimagedevice to use a string of gray or RGB values, rather than
  1921. an array of color objects, to specify the palette.  Removes
  1922. currentgscolor and setgscolor from the interpreter, but leaves t_color
  1923. objects in, since they may be useful later.
  1924.  
  1925. Adds getdeviceprops and putdeviceprops for manipulating device properties.
  1926. Currently defined properties for all devices: InitialMatrix, HWResolution,
  1927. HWSize, Name.  Currently defined properties for printers: BufferSpace,
  1928. MaxBitmap, OutputFile.  OutputFile allows |command for piping on Unix
  1929. systems.
  1930.  
  1931. Removes deviceparams and makedevice.  Adds devicedefaultmatrix.
  1932.  
  1933. Implements reversepath.
  1934.  
  1935. Makes copy work on devices.
  1936.  
  1937. MS-DOS specific
  1938. - - - - - - - -
  1939.  
  1940. Fixes bugs:
  1941.     - iutilasm.asm wouldn't assemble with newer versions of MASM if
  1942. CPU_TYPE was set to 286 or above.
  1943.     - CPU_TYPE=386 didn't properly substitute the faster
  1944. multiply/divide routines under Turbo C++ or Borland C++, only under the
  1945. original Turbo C.
  1946.  
  1947. Library
  1948. -------
  1949.  
  1950. Fixes bugs:
  1951.     - A curve whose first and last points were the same wouldn't get
  1952. drawn at all.
  1953.     - A bug in the Turbo C++ compiler generated bad code when shifting
  1954. a long right by 1 bit.
  1955.     - If stroking a dashed line ever encountered a segment that was
  1956. completely blank, Ghostscript would indirect through a null pointer.
  1957.     - arc and arcn gave an error if the radius was negative.
  1958.     - stroke always used the general algorithm, even if the line was
  1959. guaranteed to be thin.
  1960.     - arc and arcn erroneously reduced the angles mod 360.
  1961.     - Very large or negative 32-bit numbers in Type 1 fonts didn't
  1962. work properly on MS-DOS systems (the ff0000 bits got set to zero). 
  1963.     - Color printer devices rendering entirely in memory only
  1964. allocated a monochrome-sized bitmap.
  1965.     - clip and eoclip didn't intersect the paths properly in the
  1966. general case.
  1967.     - charpath erroneously rounded the current point to an integral
  1968. value, causing characters to be spaced improperly.
  1969.     - The definition of max_color_param got some compilers confused.
  1970.     - charpath always used quadratic time and space, and dropped all
  1971. but the last character when used with a Type 3 font.
  1972.     - Stroking a path with a 180 degree angle would incorrectly miter
  1973. instead of beveling.
  1974.     - Type 1 fonts used the current flatness for curves, which could
  1975. produce bad (and inconsistent) results.
  1976.     - Stroking a degenerate line segment produced incorrect results.
  1977.  
  1978. Changes the character cache to use the UniqueID as the key, when
  1979. available, instead of the font pointer.  This dramatically improves
  1980. performance when fonts are getting removed and reloaded because of page
  1981. isolation with save/restore.
  1982.  
  1983. Removes some unnecessary casts to (float) from gsmatrix.c and gscoord.c.
  1984.  
  1985. Changes the Type 1 interpreter so that it rounds line and curve endpoints
  1986. to the center of the nearest half-pixel, and omits null line segments.
  1987. This both speeds up rendering at small sizes and improves output quality.
  1988.  
  1989. Changes gs_deviceparams to return resolution as well as extent; changes
  1990. gs_makedevice to accept resolution as well as extent.
  1991.  
  1992. Replaces the algorithm for approximating circular arcs with curves with a
  1993. more accurate one.
  1994.  
  1995. Changes gs_point and gs_rect to use doubles rather than floats.
  1996.  
  1997. Adds gs_setmetrics, for overriding Type 1 font metrics for the current
  1998. character.
  1999.  
  2000. Changes clipping to use lists of rectangles rather than path intersection.
  2001.  This makes a big difference when clipping bitmaps (including characters).
  2002.  
  2003. Changes the character cache to discard entries incrementally, rather than
  2004. clearing the entire cache when it fills up.
  2005.  
  2006. Changes the implementation of transfer functions to use a cached map,
  2007. built when the transfer function is set.  This makes transfer functions
  2008. work properly in all situations, including images.
  2009.  
  2010. Defines a .quit operator that takes an exit code, and redefines quit in
  2011. terms of it.
  2012.  
  2013. Adds support for 16-bit-per-pixel devices in gdevmem.
  2014.  
  2015. Adds gs_copydevice and gs_deviceinitialmatrix; removes gs_deviceparams and
  2016. gs_makedevice.
  2017.  
  2018. Changes setscreen to ensure that the cell is always at least 4x4 pixels in
  2019. size.
  2020.  
  2021. Versions before 2.4
  2022. ===================
  2023.  
  2024. See the file history.doc.
  2025.